Skip to content

VLC recepie, sdl2 bootstaps improvements#480

Merged
inclement merged 33 commits into
kivy:masterfrom
ibobalo:master
Nov 26, 2015
Merged

VLC recepie, sdl2 bootstaps improvements#480
inclement merged 33 commits into
kivy:masterfrom
ibobalo:master

Conversation

@ibobalo

@ibobalo ibobalo commented Oct 27, 2015

Copy link
Copy Markdown
Contributor

added vlc videoplayer recipe (for both pygame and sdl2 bootstraps)
added sdl2 support for native widget integration (see kivy vlc example)
added sdl2 bootstrap metadata
bootstraps common code abstractions
improved sdl2 bootstrap command line compatibility with pygame bootstrap
toolchain support for aar libs added
toolchain logging output cosmetic

@inclement

Copy link
Copy Markdown
Member

Looks super cool from a quick glance, I'll hopefully have time to take a proper look at the weekend. Thanks!

@inclement

Copy link
Copy Markdown
Member

I see you've added some more commits, are you still working on this or is it ready to check and merge?

@ibobalo

ibobalo commented Nov 4, 2015

Copy link
Copy Markdown
Contributor Author

now (8ae6758) it is ready to merge. from this point i start other task (usb/bt hardware joysticks/mouse/gamepads etc support for android)

@ibobalo

ibobalo commented Nov 25, 2015

Copy link
Copy Markdown
Contributor Author

existing conflicts resolved. pls make a decision about this pull request to avoid future conflicts.

@inclement

Copy link
Copy Markdown
Member

I'm sorry for not getting back to you sooner. This looks good, and I expect to merge it, but I haven't been through it thoroughly yet (because it touches a few different things) - it's a priority for me to do in the next few days though. After my checks so far, I think I'll have a couple of small changes to suggest, but probably nothing major, and I'll confirm with details as soon as possible.

Thanks for the nice contribution :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do these extra arguments do? I thought they would be sh arguments, but couldn't find them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its new args of shprint. for pretty log optputs.
_tail mean show only N last lines of stdout. stderr will out full. like
command args | tail 10
_filterout mean do not print stdout lines matching regexp. like command
args | grep -v -e "re"
also _filter available
and _critical mean stop processing immediate after error, and do not
re-raise exception.
all this changes tot effect commands execution (except critical), just
butify its printout

2015-11-27 0:40 GMT+02:00 Alexander Taylor notifications@github.com:

In pythonforandroid/bootstraps/pygame/init.py
#480 (comment)
:

@@ -40,21 +43,14 @@ def run_distribute(self):
info('Copying python distribution')
hostpython = sh.Command(self.ctx.hostpython)
# AND: This doesn't need to be in arm env?

  •        shprint(hostpython, '-OO', '-m', 'compileall', self.ctx.get_python_install_dir())
    
  •        shprint(hostpython, '-OO', '-m', 'compileall', self.ctx.get_python_install_dir(),
    
  •                _tail=10, _filterout="^Listing", _critical=True)
    

What do these extra arguments do? I thought they would be sh arguments,
but couldn't find them.


Reply to this email directly or view it on GitHub
https://github.com/kivy/python-for-android/pull/480/files#r46009216.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a reason for limiting to the last 10 lines? If we're passing the output through to the user, don't we want to pass all of it (or, if debug is not enabled, none of it)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 its ok to drop patchall
2 presplash it was just experiment, actually no presplash code for sdl2 so
it is my fault to commit unused image
3. some commands produce really long outputs > 1000 lines. it was a big
problem for me to find error reason.
actually, in current state of p4a there no stdout listing at all (even id
debug) - just exception traceback and shortened last line. so, 10 lines is
much better then zero ?
anyway feel free to increase it to any reasonable number of lines you want
:)

2015-11-27 0:56 GMT+02:00 Alexander Taylor notifications@github.com:

In pythonforandroid/bootstraps/pygame/init.py
#480 (comment)
:

@@ -40,21 +43,14 @@ def run_distribute(self):
info('Copying python distribution')
hostpython = sh.Command(self.ctx.hostpython)
# AND: This doesn't need to be in arm env?

  •        shprint(hostpython, '-OO', '-m', 'compileall', self.ctx.get_python_install_dir())
    
  •        shprint(hostpython, '-OO', '-m', 'compileall', self.ctx.get_python_install_dir(),
    
  •                _tail=10, _filterout="^Listing", _critical=True)
    

Do you have a reason for limiting to the last 10 lines? If we're passing
the output through to the user, don't we want to pass all of it (or, if
debug is not enabled, none of it)?


Reply to this email directly or view it on GitHub
https://github.com/kivy/python-for-android/pull/480/files#r46009546.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, ignore my last reply, I understand better now and it seems good (though is there a reason for picking this tail number in particular?).

@inclement

Copy link
Copy Markdown
Member

Would you mind removing the kivy-presplash image? I don't think we want a kivy/sdl2 logo like that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment: this would be better as `except sh.ErrorReturnCode as err' - especially since I don't think python3 supports the comma syntax any more.

@inclement

Copy link
Copy Markdown
Member

Okay, I think I'm fine with everything. Let me do a couple more tests, but then (unless something goes wrong) I'll merge it.

@ibobalo

ibobalo commented Nov 26, 2015

Copy link
Copy Markdown
Contributor Author

good luck. btw i almost done with next - support for hw joysticks (BT,
UsbHost etc)

2015-11-27 1:28 GMT+02:00 Alexander Taylor notifications@github.com:

Okay, I think I'm fine with everything. Let me do a couple more tests, but
then (unless something goes wrong) I'll merge it.


Reply to this email directly or view it on GitHub
#480 (comment)
.

@inclement inclement merged commit f80d1f6 into kivy:master Nov 26, 2015
@inclement

Copy link
Copy Markdown
Member

All done, thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants